package com.tyj.gulimall.product;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@EnableRedisHttpSession
@EnableCaching
@EnableFeignClients(basePackages = "com.tyj.gulimall.product.feign")  //开启远程调用
@SpringBootApplication
@EnableDiscoveryClient
public class GulimallProductApplication {

    /**
     * 1)
     * 导入myabtis-plus依赖
     * 2)配置数据源
     *   1)导入数据库依赖
     *   2)在application.yml配置数据源
     *  2)配置mybatis-pulus
     */

    public static void main(String[] args) {
        SpringApplication.run(GulimallProductApplication.class, args);
    }

}
